package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelService {

    PageInfo<Travel> query(QueryObject qo);

    void saveOrUpdate(Travel entity);

    Travel get(Long id);

    String getContent(Long id);

    void changeState(Long id, Integer state);
    //公开
    PageInfo<Travel> queryForTravels(QueryObject qo);

    List<Travel> list();

    void updateCollectById(Long id, Integer collect, Long userId);
}
